/* eslint-disable no-console */
const style = (color: string) => {
  return `background-color: ${color}; color: #fff; padding: 2px 4px;border-radius: 2px;`
}
export default class LoggerUtils {
  static version = (v: string) =>
    console.log(
      `%c${v}`,
      'color: #409eff; padding: 2px 4px;font-weight: bold;letter-spacing: 4px;'
    )

  static error = (v: string) => console.log(`%c${v}`, style('#f56c6c'))
  static warning = (v: string) => console.log(`%c${v}`, style('#E6A244'))
  static success = (v: string) => console.log(`%c${v}`, style('#67c23a'))
  static primary = (v: string) => console.log(`%c${v}`, style('#909399'))
}
